package com.yuexunxinxi.carefree.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.yuexunxinxi.carefree.utils.AarrayJsonSerializer;
import com.yuexunxinxi.carefree.utils.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;


/**
 * 作者: 李咨辰
 * 文件名: ASort.java
 * 路径: com.yuexunxinxi.carefree.entity
 * 时间: 2024-10-14 12:29
 * 版本: 1.0
 * 描述: TODO 用户
 **/
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class AUser extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;//编号
    private String name;//昵称
    private String account;//账号
    private String email;//邮箱
    private String phone;//手机号
    private String password;//密码
    private String avatar;//头像
    private String intro;//简介
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String city;//城市
    private Long sex;//性别0 保密 1 男 2 女
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;//出生日期
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String tags;//标签
    @JsonSerialize(using = ToStringSerializer.class)
    private Long standingId;//实名认证
    private String secret;//登录密钥
    private String createIp;//注册ip
    private String updateIp;//修改ip
}
